package com.hxgis.common.utils;

import java.math.BigDecimal;

/**
 * 区域性暴雨过程的综合强度评价划分等级标准
 * @author cqj
 * @version 1.0
 * @date 2019/9/26 15:06
 */
public class GroupAreaUtil {


    public static String getAnalysisIndex(double analysisIndex){
        BigDecimal v1 = new BigDecimal(analysisIndex);
        if (v1.compareTo(new BigDecimal(0.95d)) >= 0){
            return "特强";
        }
        if (v1.compareTo(new BigDecimal(0.85d)) >= 0 && v1.compareTo(new BigDecimal(0.95d)) < 0 ){
            return "强";
        }
        if (v1.compareTo(new BigDecimal(0.5d)) >= 0 && v1.compareTo(new BigDecimal(0.8d)) < 0 ){
            return "较强";
        }
        return "一般";
    }

    public static void main(String[] args) {
        System.out.println(getAnalysisIndex(0.9));
    }


}
